package com.itcam.cm.order;

import com.itcam.cm.common.anno.EnableLoginAuth;
import com.itcam.cm.common.anno.EnableUserTokenFeignInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients(basePackages = {
        "com.itcam.cm.feign.cart","com.itcam.cm.feign.user","com.itcam.cm.feign.product"
})
@MapperScan(basePackages = "com.itcam.cm.order.mapper")
@EnableLoginAuth
@EnableUserTokenFeignInterceptor// 拦截器feign的请求(发出)
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class , args) ;
    }

}